<?php
class Template{
	protected $_ci;
	var $template_data = array();

	function __construct(){
		$this->_ci = &get_instance();
	}

	function display($template, $data = null){
		$data['_css_files'] = $this->_ci->load->view('template/css_files', $data, true);
		$data['_js_files'] = $this->_ci->load->view('template/js_files', $data, true);
		$data['_navigation'] = $this->_ci->load->view('template/navigation', $data, true);
		$data['_content'] = $this->_ci->load->view($template, $data, true);
		// $data['_content'] = $this->_ci->load->view('template/content', $data, true);
		$this->_ci->load->view('/index.php', $data);
	}
}
?>
